$(function(){
	$("#submitButton").click(doCheckAndSubmit);
});

function doCheckAndSubmit() {
	var email = $("#email").val();
	var password = $("#password").val();
	if (CHECK.isEmail(email) && CHECK.isPassword(password)) {
		$("#adminLoginForm").submit();
	} else {
		$("#error-message").html("邮箱或密码格式错误,请重新填写");
	}
}